package org.modulefusion.dirinstaller;

import org.osgi.framework.BundleContext;

public abstract class AbstractHandler {

    protected final BundleContext context;
    protected final Logger logger;

    public AbstractHandler(BundleContext context) {
        this.context=context;
        this.logger=Logger.getLogger(context);
    }

    public abstract void installOrUpdate(String fileName, boolean isStartup) throws DirInstallerException;

    public abstract boolean handles(String fileName);
    
    public void start() {
    }

    public void stop() {
    }

}